"""
标题类
"""
from menu import Menu
from end import End
from colorama import init, Fore, Back, Style
init(autoreset = True)

class Title(object):
    """
    一切的开始
    """
    def getAction(self, action):
        if action == 'y' or action == 'yes':
            return Menu()
        elif action == 'n' or action == 'no':
            return End()
        else:
            print("无法识别的命令！")
            return self
    
    def show(self):
        print(Fore.WHITE + """
           _____  _   _ __  __ ____  
     /\   |  __ \| \ | |  \/  |  _ \ 
    /  \  | |  | |  \| | \  / | |_) |
   / /\ \ | |  | | . ` | |\/| |  _ < 
  / ____ \| |__| | |\  | |  | | |_) |
 /_/    \_\_____/|_| \_|_|  |_|____/ 
                                     
        """)
        print(Fore.BLACK+Back.WHITE+"""
        欢迎来到A岛终端版
        ================================
        是否确认进入A岛？(Yes or No)
        """)
        return True